const MiniCssExtractPlugin = require('mini-css-extract-plugin')

module.exports = {
    entry: './src/index.js',
    plugins: [

    ],
    resolve: {
        alias: {
            'vue': 'vue/dist/vue.js',
        }
    },
    module: {
        rules: [{
            test: /\.css$/,
            use: [
                MiniCssExtractPlugin.loader,
                'css-loader'
            ]
        }, {
            test: /\.less$/,
            use: [
                MiniCssExtractPlugin.loader,
                'css-loader',
                'less-loader',
            ]
        }, {
            test: /\.(jpg|png|svg)/,
            use: ['file-loader'],
        }]
    }

}